package com.kejy.service.impl;

import com.kejy.entity.AuctionUser;
import com.kejy.mapper.AuctionUserMapper;
import com.kejy.service.AuctionUserService;
import com.kejy.util.MyBatisUtil;

public class AuctionUserServiceImpl implements AuctionUserService{
    private AuctionUserMapper auctionUserService =
            MyBatisUtil.createSqlSession().getMapper(AuctionUserMapper.class);

    public int addUser(AuctionUser auctionUser) {
        return auctionUserService.addUser(auctionUser);
    }

    @Override
    public AuctionUser login(AuctionUser auctionUser) {
        return auctionUserService.login(auctionUser);
    }
}
